<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
	xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:t="http://myfaces.apache.org/tomahawk"
	xmlns:c="http://java.sun.com/jstl/core">
<ui:composition template="/templates/mainTemplate.xhtml">
	<ui:define name="pageTitle">Admin User List</ui:define>
	<ui:define name="pageHeader">Admin User List</ui:define>
	<ui:define name="maincontent">
		<h:form>
			<h:commandButton action="#{person.loadAllPersons}"
				value="${msg.allUser}" />
		</h:form>
		<t:dataTable var="allPerson" value="#{person.allPerson}"
			forceId="true" border="1" preserveDataModel="true">
			<t:column>
				<f:facet name="header">
					<h:outputText value="#{msg.id}" />
				</f:facet>
				<h:outputText value="#{allPerson.id}" />
			</t:column>
			<t:column>
				<f:facet name="header">
					<h:outputText value="Nick" />
				</f:facet>
				<h:form>
					<h:commandLink forceId="true" action="#{person.editUser}"
						immediate="true">
						<h:outputText value="#{allPerson.nick}" />
						<f:param name="userEditNick" value="#{allPerson.nick}" />
					</h:commandLink>
				</h:form>
			</t:column>
			<t:column>
				<f:facet name="header">
					<h:outputText value="Vorname" />
				</f:facet>
				<h:outputText value="#{allPerson.vorname}" />
			</t:column>
			<t:column>
				<f:facet name="header">
					<h:outputText value="Nachname" />
				</f:facet>
				<h:outputText value="#{allPerson.nachname}" />
			</t:column>
			<t:column>
				<f:facet name="header">
					<h:outputText value="EMail" />
				</f:facet>
				<h:outputText value="#{allPerson.email}" />
			</t:column>
			<t:column>
				<f:facet name="header">
					<h:outputText value="#{msg.isConfirmed}" />
				</f:facet>
				<h:selectBooleanCheckbox value="#{allPerson.confirmed}"
					disabled="true" />
			</t:column>
			<t:column>
				<f:facet name="header">
					<h:outputText value="#{msg.isAdmin}" />
				</f:facet>
				<h:selectBooleanCheckbox value="#{allPerson.admin}"
					disabled="true" />
			</t:column>
		</t:dataTable>
	</ui:define>
</ui:composition>
</html>